// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class Area : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<Area, MasterDbContextLocator>
    {

        public int AreaId { get; set; }
        public string AreaCode { get; set; }
        public string ParentCode { get; set; }
        public string AreaName { get; set; }
        public int? Administrativelevel { get; set; }
        public int? AdminCode { get; set; }
        public decimal? AreaGensTimes { get; set; }
        public decimal? AverageUsage { get; set; }
        public string Remark { get; set; }
        public string PrjCode { get; set; }
        public int? OverclockValue { get; set; }
        public int? TimeoutValue { get; set; }
    
        public void Configure(EntityTypeBuilder<Area> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.AreaCode).HasMaxLength(50);

                entityBuilder.Property(e => e.AreaGensTimes)
                    .HasColumnType("numeric(18, 2)")
                    .HasDefaultValueSql("((0))");

                entityBuilder.Property(e => e.AreaName).HasMaxLength(50);

                entityBuilder.Property(e => e.AverageUsage)
                    .HasColumnType("numeric(18, 2)")
                    .HasDefaultValueSql("((0))");

                entityBuilder.Property(e => e.ParentCode).HasMaxLength(50);

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(100);

                entityBuilder.Property(e => e.Remark).HasMaxLength(200);
        }

    }
}

